package com.jiyun.controller;

import com.cn.jiyun.entity.pojo.Club;
import com.cn.jiyun.entity.pojo.Items;
import com.jiyun.result.Result;
import com.jiyun.service.ItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/items")
public class ItemsController {
    @Autowired
    private ItemsService itemsService;

    @RequestMapping("/findPall")
    public Result<List<Items>> findPall(){
        List<Items> items = itemsService.findPall();
        return Result.ok(items);
    }
}
